package com.hospital.doctor.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
public class Prescription {
    //处方编号
    @ExcelIgnore
    private int prId;
    //病人编号
    @ExcelIgnore
    private int pId;
    //医生编号
    @ExcelIgnore
    private int dId;
    //处方内容
    @ExcelProperty(value = "处方内容",index = 0)
    private String prContent;
    //开处方时间
    @ExcelProperty(value = "开处时间",index = 4)
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    @JsonFormat(pattern = "yyyy-MM-dd kk:mm")
    private Date prTime;
    //处方执行时间
    @JsonFormat(pattern = "yyyy-MM-dd kk:mm")
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    @ExcelProperty(value = "开始时间",index = 3)
    private Date prStartTime;
    //使用方法，使用频次
    @ExcelProperty(value = "使用方法",index = 2)
    private String prUse;
    //是否被执行
    @ExcelProperty(value = "是否被执行",index = 6)
    private String prExecute;
    //注意事项
    @ExcelProperty(value = "注意事项",index = 5)
    private String prAttention;
    //是否停止
    @ExcelProperty(value = "是否停止",index = 7)
    private int prStop;
    //计量
    @ExcelProperty(value = "剂量",index = 1)
    private int prJiliang;




    public int getPrJiliang() {
        return prJiliang;
    }

    public void setPrJiliang(int prJiliang) {
        this.prJiliang = prJiliang;
    }

    public int getPrId() {
        return prId;
    }

    public void setPrId(int prId) {
        this.prId = prId;
    }

    public int getpId() {
        return pId;
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    public int getdId() {
        return dId;
    }

    public void setdId(int dId) {
        this.dId = dId;
    }

    public String getPrContent() {
        return prContent;
    }

    public void setPrContent(String prContent) {
        this.prContent = prContent;
    }

    public Date getPrTime() {
        return prTime;
    }

    public void setPrTime(Date prTime) {
        this.prTime = prTime;
    }

    public Date getPrStartTime() {
        return prStartTime;
    }

    public void setPrStartTime(Date prStartTime) {
        this.prStartTime = prStartTime;
    }

    public String getPrUse() {
        return prUse;
    }

    public void setPrUse(String prUse) {
        this.prUse = prUse;
    }

    public String getPrExecute() {
        return prExecute;
    }

    public void setPrExecute(String prExecute) {
        this.prExecute = prExecute;
    }

    public String getPrAttention() {
        return prAttention;
    }

    public void setPrAttention(String prAttention) {
        this.prAttention = prAttention;
    }

    public int getPrStop() {
        return prStop;
    }

    public void setPrStop(int prStop) {
        this.prStop = prStop;
    }
}
